package com.gome.ocean.service.authority;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.gome.ocean.common.exception.UserServiceException;
import com.gome.ocean.dao.model.authority.Module;

/**
 * Created by liuqingxia on 2016/6/20.
 */
public interface ModuleService {

    public boolean insertModule(Module module) throws UserServiceException;

    public boolean removeModuleById(Long id);

    public boolean updateModule(Module moduleBO);

    public Module findModuleById(Long id);
    
    public Page<Module> findAllModule(int pageNum,int pageSize);
    
    public Module findModuleByMap(Map<String, Object> map);
    
    public List<Module> findAllModuleByMap(Map<String, Object> map);

}
